package com.dreamer.domain.sign;

import javax.persistence.Entity;
import java.util.Date;

@Entity
public class SignCount {

    private Integer id;

    private Integer userId;

    private Date date;//最近签到时间

    private Integer count;//连续签到

    private Integer allCount;//累计签到

    public SignCount(Integer userId, Date date, Integer count, Integer allCount) {
        this.userId = userId;
        this.date = date;
        this.count = count;
        this.allCount = allCount;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public SignCount() {
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getAllCount() {
        return allCount;
    }

    public void setAllCount(Integer allCount) {
        this.allCount = allCount;
    }
}
